﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Front.Master" AutoEventWireup="true"
    CodeBehind="NewsManage.aspx.cs" Inherits="HSchSchedule.FrontPage.NewsManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="mainHolder" runat="server">
    <div>
        <asp:GridView ID="gridNews" runat="server" AutoGenerateColumns="false" OnRowDataBound="gridNews_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="ID">
                    <ItemTemplate>
                        <asp:Label ID="lblID" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Tiêu đề">
                    <ItemTemplate>
                        <asp:Label ID="lblTitle" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Ngày đăng">
                    <ItemTemplate>
                        <asp:Label ID="lblDate" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
<%--            <Columns>
                <asp:TemplateField HeaderText="Sửa">
                    <ItemTemplate>
                        <asp:HyperLink runat="server" ID="hplUpdate" Text="Sửa"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
--%>            <Columns>
                <asp:TemplateField HeaderText="Xóa">
                    <ItemTemplate>
                        <asp:CheckBox ID="chkDel" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <div>
        <asp:Button ID="btnAdd" runat="server" Text="Thêm tin mới" OnClick="btnAdd_Click" />
        <asp:Button ID="btnDel" runat="server" Text="Xóa" OnClick="btnDel_Click" />
        <asp:Label ID="lblError" runat="server"></asp:Label>
    </div>
</asp:Content>
